package com.zhangzeqin.code.service.Impl;

import com.zhangzeqin.code.dao.Impl.UserDaoImpl;
import com.zhangzeqin.code.dao.UserDao;
import com.zhangzeqin.code.service.UserService;

import java.sql.SQLException;

import static com.zhangzeqin.code.util.JdbcUtil.executeUpdate;

public class UserServiceImpl implements UserService {
    /**
     * 实例化一个持久层对象
     */
    UserDao userDao=new UserDaoImpl();

    @Override
    public boolean register(String name, String password) {
        return userDao.register(name, password);
    }



    @Override
    public boolean landing(String name, String password) {

        return userDao.landing(name, password);
    }

    @Override
    public boolean completeUser(String nickName, String gender, String birth, String number, String password) {
        return userDao.completeUser(nickName,gender,birth,number,password);
    }

    @Override
    public Object[][] rankUser() {
        return userDao.rankUser();
    }

    @Override
    public Object[] pInformation() throws SQLException {
        return userDao.pInformation();
    }

    @Override
    public boolean modifyPlan(String aimWord) {
        return userDao.modifyPlan(aimWord);
    }



}
